package com.engein.mycolumn.dao;

import com.engein.mycolumn.entity.ArticleEntity;
import com.engein.mycolumn.utils.PageQueryUtil;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper {

    int deleteByPrimaryKey(Long articleId);

    int insert(ArticleEntity record);

    int insertSelective(ArticleEntity record);

    ArticleEntity selectByPrimaryKey(Long articleId);

    int updateByPrimaryKeySelective(ArticleEntity record);

    int updateByPrimaryKeyWithBLOBs(ArticleEntity record);

    int updateByPrimaryKey(ArticleEntity record);

    int getTotalArticles(PageQueryUtil pageUtil);

    List<ArticleEntity> findArticleList(PageQueryUtil pageUtil);

    int selectTotalArticleByColumnId(Long columnId);
}